﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace CaptialVices
{
    public struct Sprite : ICustomDrawable
    {
        public Texture2D Texture;
        
        public Vector2 Position;

        public void Draw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            if(Texture != null)
                spriteBatch.Draw(Texture, Position, Color.White);
        }

        public bool MouseInside()
        {
            return true;
        }

        public bool MouseInsideClick()
        {
            return true;
        }

        public Rectangle GetRect()
        {
            return new Rectangle((int)Position.X, (int)Position.Y, Texture.Width, Texture.Height);
        }
    }
}
